package com.lktx.bbfactory.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lktx.bbfactory.common.CommonPage;
import com.lktx.bbfactory.entiy.DTO.GanttConfigDto;
import com.lktx.bbfactory.entiy.Product;
import com.lktx.bbfactory.entiy.VO.productListVo;


import java.util.List;

public interface productService extends IService<Product> {
    //分页查询产品
    CommonPage<productListVo> listPage(Integer projectId, String name, String type, String process,String clientUsername,
                                       Integer pageNum, Integer pageSize);

    //添加产品
    void addProduct(Product product);

    //更新产品信息
    void updateProduct(Product product);

    //报错甘特图模版
    boolean saveGanttConfig(String id,List<GanttConfigDto> ganttConfigDtos);
}
